package com.sixth.dao;

import com.sixth.entity.ECourse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface ECourseDao {
    int deleteByPrimaryKey(String id);

    int insert(ECourse record);

    int insertSelective(ECourse record);

    ECourse selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ECourse record);

    int updateByPrimaryKey(ECourse record);


    List<ECourse> selectBottomByCondition(@Param("title") String title,@Param("isDeleted") Byte isDeleted);

    List<ECourse> selectBottomByConditionn(@Param("title") String title,@Param("status") String status);

    int addCourseDetail(@Param("courseId") String courseId);
}